<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>插入图片和背景图片的区别</title>
    <style>
       .bw1,
       .bw2{
           width: 500px;
           height: 500px;
           border: 1px solid red;
           /* 操作图片 */
           padding: 30px;
       }

       .bw1{
           /* margin: 30px; */
       }

       .bw2{
           background: url(images/3.jpg) no-repeat;
           /* 操作背景图 */
           background-position: 30px 230px;
       }
    </style>
</head>
<body>
    <div class="bw1">
        <img src="images/3.jpg" alt="">
    </div>
    <div class="bw2">

    </div>
</body>
</html>